{if $shares}
	{if $showpage}
	<div id="page-nav" class="pin hide" style="display: none;">
		<a id="page-next" data-showpage="$showpage"></a>
	</div>
	{/if}
	{loop $shares $share}
		{if $share['isad']}
		<div class="pin hide">
			<div class="share_img" style="width: 200px;height:{$share['height']}px;padding: 10px 10px 0px 10px;">
				<iframe src="{url misc/adproxy?key=$share['key']&ad_position=$share['ad_position']}" width="$share['width']" height="$share['height']" frameborder="0" scrolling="no">
				</iframe>
			</div>
			<div class="share_social c_b">
				<span class="prompt f_l">{$share['ad_name']}</span>
			</div>
		</div>
		{else}
		<div class="pin hide $share['item_type']" id="$share['share_id']">
		 	<div class="puzzing">
		 		{if $share['isarticle']}
		 			<div class="article-title"> 
		 			<div class="article-icon"><div class="article-icon-i">{lang article}</div></div>
		 			<a href="$share['link']" id="$share['share_id']_image">$share['title']</a></div>
		 			<div class="article-content">
			 			<div class="shareface"><a target="_blank" href="$share['link']" class="trans07" data-user-id="$share['user_id']" data-user-profile="1"><img src="{avatar($share['user_id'])}" onerror="javascript:this.src = base_url + '/assets/img/avatar_middle.jpg';" width="30" height="30"/></a> </div>
						<a target="_blank" href="$share['link']" data-user-id="$share['user_id']" data-user-profile="1">$share['user_nickname']:</a>
						$share['summary']
					</div>
					{if $share['dtype']==1}<i class="share-digist">Fine</i>{/if}
					{if $share['dtype']==2||$share['dtype']==3}<i class="share-top">Top</i>{/if}
					
		 		{else}
					<div class="share_img">
						<a  href="$share['link']" class="image {if $share['long']}long{/if}" id="$share['share_id']_image" style="background-color: $share['colorvalue'];"><h4>{date $share['create_time']}</h4><img alt="$share['title']" class="s_image lazy" src="$share['image0']" orgin_src="$share['image0']" width="220" height="$share['height']" border="0"/>{if $share['isvideo']}<i class="video_icon" orgin_url="$share['reference_url']"></i>{/if}{if $share['long']}<span class="stop"></span>{/if}</a>{if $share['price']}<div class="goods_price">{$settings['priceunit']}$share['price']</div>{/if}
					</div>
					{if $share['muilt']}
					<div class="other_img">
					<a class="image img_0" href="$share['link']"><img src="$share['image1']"></a>
		            <a class="image img_1" href="$share['link']"><img src="$share['image2']"></a>
		            </div>
					{/if}
					{if $share['dtype']==1}<i class="share-digist">Fine</i>{/if}
					{if $share['dtype']==2||$share['dtype']==3}<i class="share-top">Top</i>{/if}
					
					<div class="puzzing-txt">
						<div class="actions clearfix">
							<a href="javascript:void(0);" data-action="addLike" data-params="$share['share_id'],$share['share_id']_image" class="btn btn-puzz {if $share['liked']}meta-liked{/if} pull-left"><i class="icon-heart icon-white"></i></a>
							<a href="javascript:void(0);" data-action="{if $islogin}addCommentBox{else}openLoginDialog{/if}" data-params="$share['share_id']" class="btn btn-puzz pull-left"><i class="icon-comment icon-white"></i></a>
							<div class="pull-right">
							<a href="javascript:void(0);"  class="btn btn-puzz pull-right dropdown-toggle" data-toggle="dropdown"><i class="icon-share-alt icon-white"></i></a>
							<ul class="dropdown-menu no-minwidth">
					            <li><a href="javascript:void(0);" data-action="forwarding" data-params="$share['share_id']"><i class="icon-repeat icon-white"></i>{lang inside_forward}</a></li>
					            {loop $sharebuttons $key $target}
								<li><a href="javascript:void(0);" data-action="socialShare" data-params="$share['share_id'],$key"><i class="pico-$key"></i>{$target['name']}</a></li>
								{/loop}
					        </ul>
					        </div>
					 	</div>
						<a  href="$share['link']" class="$share['longcss']">
						<span class="txt">$share['summary']</span>
						<em>{date $share['create_time']}</em>
						</a>
					</div>
				{/if}
			</div>
			<div class="tool_info clearfix">
				{if $share['total_images']>2}
				<a rel="tooltip" class="clip" href="javascript:void(0);">$share['total_images']</a>
				{/if}
				{if $share['ios']}
				<a rel="tooltip" title="{lang post_by_ios}" class="icon-16-ios" href="javascript:void(0);"></a>
				{/if}
				{if $share['android']}
				<a rel="tooltip" title="{lang post_by_android}" class="icon-16-android" href="javascript:void(0);"></a>
				{/if}
				<ul class="tools pull-right">
					{if $isadmin||$isediter||$share['isowner']}
					<li class="settings pull-right">
						<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i></a>
						<div class="dropdown-menu no-minwidth">
							<a href="javascript:void(0);" rel="tooltip" title="{lang l_edit}" data-edit="{url share/editshare?sid=$share['share_id']}" data-action="{if ($share['poster_id']==$share['user_id'])&&($share['poster_id']==$cuser['uid']||$is_editer||$isadmin)}editOShareOpen{else}editFShareOpen{/if}" data-params="$share['share_id']"><i class="icon-edit"></i></a>
							<a href="javascript:void(0);" rel="tooltip" title="{lang l_delete}" data-rel="confirm" data-acturl="{url share/delete?sid=$share['share_id']}" data-note="{lang tip_confirm_deleteshare}"><i class="icon-remove"></i></a>
							{if $isadmin||$isediter||($share['isowner']&&$cuser['isstar'])}
							<a href="javascript:void(0);" rel="tooltip" title="{lang l_star}" data-action="starOpen" data-params="$share['share_id'],$share['user_id'],$share['category_id'],$share['large']"><i class="icon-star"></i></a>
							{/if}
							{if $isadmin||$isediter}
							<a href="javascript:void(0);" rel="tooltip" title="{lang l_ban}" data-rel="confirm" data-acturl="{url admin/banuser?uid=$share['user_id']}" data-note="{lang tip_confirm_ban}"><i class="icon-user"></i></a>
							<a href="javascript:void(0);" rel="tooltip" title="{lang l_push}" data-action="openPushDialog" data-params="$share['share_id'],$share['category_id'],$share['large']"><i class="icon-screenshot"></i></a>
							<a href="javascript:void(0);" rel="tooltip" title="{lang l_digist}" data-rel="confirm" data-acturl="{url share/dtype?type=digist&sid=$share['share_id']}" data-tpl="digist"><i class="icon-thumbs-up"></i></a>
							<a href="javascript:void(0);" rel="tooltip" title="{lang l_top}" data-rel="confirm" data-acturl="{url share/dtype?type=maketop&sid=$share['share_id']}" data-tpl="maketop"><i class="icon-arrow-up"></i></a>
							{/if}
					    </div>
					</li>
					{/if}
					<li class="comments" rel="tooltip" title="{lang comment}" data-action="{if $islogin}addCommentBox{else}openLoginDialog{/if}" data-params="$share['share_id']">
						$share['total_comment']
					</li>
					<li class="fav" rel="tooltip" title="{lang tip_like}" id="$share['share_id']_likenum" data-action="addLike" data-params="$share['share_id'],$share['share_id']_image">
						<em>$share['total_like']</em>
					</li>
					<li class="views" rel="tooltip" title="{lang view}">
						$share['total_click']
					</li>
				</ul>
			</div>
			{if !$share['isarticle']}
			<div class="share_people">
				<div class="shareface"><a href="{url home/share?uid=$share['user_id']}" class="trans07" data-user-id="$share['user_id']" data-user-profile="1"><img src="{avatar($share['user_id'],'middle')}" onerror="javascript:this.src = base_url + 'assets/img/avatar_middle.jpg';" width="30" height="30"/></a> </div>
				<div class="shareinfo"> 
					<p><a href="{url home/share?uid=$share['user_id']}" data-user-id="$share['user_id']" data-user-profile="1">$share['user_nickname']:</a>
						$share['title']
					</p>
				</div>
			</div>
			{else}
				<div class="share_time">
					{date $share['create_time']}
				</div>
			{/if}
			<div class="share_comments" id="$share['share_id']_comments">
		  		{loop $share['comments'] $comment}
				<div class="comment">
					<div class="shareface"><a class="trans07" href="{url home/user?uid=$comment['user_id']}" data-user-id="$comment['user_id']" data-user-profile="1"><img src="{echo useravatar($comment['user_id'])}" class="avatar"  onerror="javascript:this.src = base_url + 'assets/img/avatar_small.jpg';" width="30" height="30"></a></div>
					<div class="shareinfo"><a href="{url home/user?uid=$comment['user_id']}" data-user-id="$comment['user_id']" data-user-profile="1">$comment['nickname']</a><p>$comment['comment_txt']</p></div>
				</div>
				{/loop}
			</div>
			<div class="share_comments commentdiv hide" id="$share['share_id']_commentdiv">
		  		<div class="comment">
					<div class="shareface"><img src="{avatar($cuser['user_id'],'middle')}" onerror="javascript:this.src = base_url + 'assets/img/avatar_small.jpg';" width="30" height="30" /></div>
					<div class="shareinfo">
					<textarea id="$share['share_id']_commentbox" rows="2" class="borderclass" onkeyup="javascript:strLenCalc(this, '$share['share_id']checklen', {$shareSetting['comment_range_l']});"></textarea>
					<span class="smalltxt"><i id="$share['share_id']checklen">$shareSetting['comment_range_l']</i>/$shareSetting['comment_range_l']</span><button data-action="addComment" data-params="$share['share_id'],comment_waterfall" class="btn pull-right">{lang comment}</button>
					</div>
				</div>
			</div>
			
		</div>
		{/if}
	{/loop}
{/if}